package com.studentexam.student.dao;

import com.studentexam.student.eo.QuestionBankEoPage;
import com.studentexam.student.model.QuestionBank;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface QuestionBankMapper {
    int insertQuestionBank(QuestionBank questionBank);

    int updateQuestionBank(QuestionBank questionBank);

    int delQuestionBank(Integer questionbankid);

    List<QuestionBank> getByType(String examtypeid,String isquestionrelease);

    List<QuestionBank> getByQuestionBankid(Integer questionbankid);

    List<QuestionBank> getAllQuestionBank(QuestionBank questionBank);


    /*分页查询*/
    List<QuestionBankEoPage> getQuestionBankWhereAll(QuestionBankEoPage questionBankEoPage);


    /*外键查询方法*/
    int getTeacherCount(Integer questionbankid);

    int getExamTypeCount(Integer questionbankid);
}
